require "webrick"

httpd = WEBrick::HTTPServer.new(:DocumentRoot =>Dir::pwd,  :Port => 3001 )
trap(:INT){ httpd.shutdown }
httpd.start